<?php

    class ElementUrl extends Element {
        public function Render( $server, $db = false, $table = false, $page = false ) {
            ?>?server=<?php
            echo $server[ 'name' ];

            if ( is_object( $db ) ) {
                ?>&amp;database=<?php
                echo $db->Name();
            }
            if ( is_object( $table ) ) {
                ?>&amp;table=<?php
                echo $table->Name;
            }
            if ( $page !== false ) {
                ?>&amp;curpage=<?php
                echo $page;
            }
        }
    }

?>
